package com.kzl.demo.server.service;

import com.caucho.hessian.server.HessianServlet;
import com.kzl.demo.server.biz.HelloBiz;
import com.kzl.demo.server.biz.basic.IBasicBiz;
import com.kzl.demo.server.service.basic.IBasicService;

public class BasicService extends HessianServlet implements IBasicService {
	private final String TAG = getClass().getName();
	private String result;
	public IBasicBiz biz = new HelloBiz();

	@Override
	public String hello() {
		before();
		result = excute();
		after();
		return result;
	}
	//spring 依赖注入，调用具体方法
    private String excute() {
		System.out.println(TAG + "  execute");
		return biz.excute();
	}

    private void before() {
		System.out.println(TAG + "  before");
	}

	private void after() {
		System.out.println(TAG + "  after");
	}
}
